Was the sd card damaged?I got this error:
Your data directory is not writablePermissions can usually be fixed by giving the webserver write access to the root directory. See https://docs.nextcloud.com/server/16/go.php?to=admin-dir_permissions.But the side does not help. Is my sd card faulty? I can still connect via ssh to the raspi.Access via admin web gui is still possible.NC-snapshot gives me:An unhandled exception has been thrown:Exception: Environment not properly prepared. in /var/www/nextcloud/lib/private/Console/Application.php:166Stack trace:#0 /var/www/nextcloud/console.php(96): OC\Console\Application->loadCommands(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))#1 /var/www/nextcloud/occ(11): require_once(’/var/www/nextcl…’)#2 {main}{“reqId”:“xyz”,“level”:3,“time”:“2019-12-13T21:28:39+00:00”,“remoteAddr”:"",“user”:"–",“app”:“PHP”,“method”:"",“url”:"–",“message”:“fopen(/media/NCP/nc-data/nextcloud.log): failed to open stream: Read-only file system at /var/www/nextcloud/lib/private/Log/File.php#139”,“userAgent”:"–",“version”:“16.0.5.1”}{“reqId”:“xyz”,“level”:2,“time”:“2019-12-13T21:28:40+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“Temporary directory /media/NCP/nc-data/tmp is not present or writable”,“userAgent”:"–",“version”:“16.0.5.1”}{“reqId”:“OSVSJ7wLRK5UsVH9jSMQ”,“level”:3,“time”:“2019-12-13T21:28:43+00:00”,“remoteAddr”:"",“user”:"–",“app”:“PHP”,“method”:"",“url”:"–",“message”:“fopen(/media/NCP/nc-data/data_dir_writability_test_5df4028b09063.tmp): failed to open stream: Read-only file system at /var/www/nextcloud/lib/private/legacy/util.php#796”,“userAgent”:"–",“version”:“16.0.5.1”}{“reqId”:“xyz”,“level”:3,“time”:“2019-12-13T21:28:43+00:00”,“remoteAddr”:"",“user”:"–",“app”:“PHP”,“method”:"",“url”:"–",“message”:“fopen(/media/NCP/nc-data/nextcloud.log): failed to open stream: Read-only file system at /var/www/nextcloud/lib/private/Log/File.php#139”,“userAgent”:"–",“version”:“16.0.5.1”}Error reading data directory. Is NextCloud running?
How do i fix permissions or do i just need a new sd card?